/**
 * 单位 api 封装
 *
 * @Author:    AKITA
 * @Date:      2025-07-23 17:13:13
 * @Copyright  AKITA
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const unitApi = {

    queryPage : (param) => {
        return postRequest('/unit/queryPage', param);
    },

    add: (param) => {
        return postRequest('/unit/add', param);
    },

    update: (param) => {
        return postRequest('/unit/update', param);
    },

    delete: (id) => {
        return getRequest(`/unit/delete/${id}`);
    },

    batchDelete: (idList) => {
        return postRequest('/unit/batchDelete', idList);
    },

};
